<p id="notice"><%= notice %></p>

<h1>Posts</h1>

<table>
  <thead>
    <tr>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @posts.each do |post| %>
      <tr>
        <td><%= post.title %></td>
        <td><%= link_to 'Show', post %></td>
        <td><%= link_to 'Edit', edit_post_path(post) %></td>
        <td><%= button_to 'Destroy', post, method: :delete %></td>
      </tr>
      <tr>
        <td>Content: <%= post.content %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Post', new_post_path %><br>
<%= link_to 'Maintenance Tasks', maintenance_tasks_path %><br>

<h4>Maintenance Tasks in <code>&lt;iframe&gt;</code></h4>

<iframe id="maintenance-tasks-iframe" src="<%= maintenance_tasks_path %>"></iframe>
